export const formatPrice = (price: string, type = 0) => {
	if (typeof Number(price) !== "number") return ''
	const idx = price.indexOf('.')
	return type ? price.substring(idx) : price.substring(0, idx)
}